<template>
  <div style="height: 100%" :class="{'old': elder}">
    <div class="empty-page">
      <img src="@/assets/500.png" alt="">
      <div class="empty-info">您尚未登录或登录超时，请重新登录</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      elder: false,
    }
  },
  methods: {

  },
  mounted() {
    //获取老年模式
    var arr1 = document.cookie.split(';');
    for(var i = 0; i < arr1.length; i++){
        var arr2 = arr1[i].split('=');
        if(trim(arr2[0]) == 'elder'){
            this.elder = arr2[1] == "false" ? false: true;
        }
    }
    function trim(value) {
      return value.replace(/^\s+|\s+$/g, '')
    }
  }
}
</script>

<style lang='scss' scoped>
  @import "src/css/home";
</style>
